﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/GoPlay.Master" AutoEventWireup="true" CodeBehind="SingleItemOut.aspx.cs" Inherits="WebTriple7.PaymentInGo.SingleItemOut" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="/Js/PaymentInGo/ItemOut.js"></script>
    <script type="text/javascript">
        pages_paymentIn_ItemIn.gateWayId = <%=(int) Config.Enum.GateWay.Ebank %>;
        var GoItemOut = {
            AuOut: <%=Info.AuOut %>,
            ReceiveAmount: <%=Info.ReceiveAmount %>
        };

        function loadReceive() {
            var au = $("#txtNumAu").val();
            $("#spVcoinReceive").html(COMMON.roundNumber(au * GoItemOut.ReceiveAmount / GoItemOut.AuOut,0));            
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
     <div>
        Nhập số vàng:
        <input type="text" id="txtNumAu" onkeydown="return COMMON.validateDigitQuantity(event)" value="0" onkeyup="loadReceive()"/>
        <br/>
        Số Vcoin: <span id="spVcoinReceive"></span>       
        <br/>
        <input type="button" value="Đồng ý" id="btnBuyItemOutSingle"/>
    </div>
</asp:Content>
